@bg-color: #31a0e1;
@bg-color-active: #0581ca;
@bg-color-btn: #4095e4;
@btn-color-active: #3f9cd2;
@font-color-active: #249af4;

ul {
  list-style: none;
  margin: 0;
  display: flex;
  align-items: center;
}
.afterbg {
  content: '';
  position: absolute;
  display: block;
  width: 1px;
  height: 70%;
  background-color: #e2e2e2;
  top: 15%;
  right: 0;
}
.mb13 {
  margin-bottom: 13px;
}
.mr10{margin-right: 10px;}
.backtodom{right: 50px;}
.bold-font {
  font-weight: bold;
  font-size: 16px;
  color: #333;
}
.iconfont-s {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-top: -3px;
  margin-right: 3px;
}

.task-main {
  background: #f5f5f5;
  height: 100%;
  .banner {
    height: 80px;
    background-image: url(../../assets/banner-top.png);
    background-position: center;
  }
  .task-add-btn {
    height: 30px;
    line-height: 30px;
    max-width: 97px;
    background-color: @bg-color-btn;
    border-radius: 2px;
    margin-right: 10px;
    margin-top: 2px;
    > span {
      font-size: 12px;
      margin-right: 5px;
      margin-left: -5px;
      vertical-align: top;
    }
    &:hover{
      background-color: #31a0e1;
    }
  }
  .container {
    padding: 20px 80px 50px;
    background: #f5f5f5;
    .header {
      .ant-col-14 {
        padding-right: 10px;
      }
      .ant-col-10 {
        display: flex;
      }
    }
    .tab-span {
      background-color: @bg-color;
      color: #fff;
      border-radius: 2px;
      span {
        padding: 0 38px;
        display: inline-block;
        height: 38px;
        line-height: 38px;
        cursor: pointer;   
        transition: all .3s;     
        &.active {
          background-color: @bg-color-active;
        }
        &:hover{
          background-color: #0f91de;
        }
      }
    }
    .cascade {
      background: #fff;
      border: 1px solid #ededed;
      color: #000;
      margin: 18px 0 30px 0;
      .projec-class-box {
        font-weight: 600;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        border-bottom: 1px solid #f2f2f2;
        .projec-class-lable {          
          text-align: center;
          font-size: 16px;
          color: #333333;
          padding: 10px 5px 10px 30px;
          &.m120{
            padding: 10px 5px 10px 10px;
            min-width: 108px;
            text-align: right;
          }
        }
        .projec-class-list {
          color: #333333;
          font-size: 14px;
          display: block;
          position: relative;
          padding: 0;
          font-weight: inherit;
          li {
            float: left;
          }
        }
        &:last-child{
          border-bottom: none;
        }
      }
      ul {
        font-weight: 600;
        li {
          padding: 10px 15px;
        }
      }
      .floatNav {
        position: fixed;
        right: 30px;
        border: 1px solid #e2e2e2;
        background-color: #fff;
        .budget-detail,
        .mission-detail,
        .invitation-detail {
          border-bottom: 1px solid #f5f5f5;
        }
        .budget-detail,
        .mission-detail,
        .invitation-detail,
        .commissioned-detail {
          display: flex;
          flex-direction: column;
          align-items: center;
          padding: 15px 10px;
          cursor: pointer;
          img {
            margin-bottom: 5px;
          }
          span {
            color: #6cb299;
          }
          p {
            margin: 0;
            color: #595959;
          }
        }
      }
      &.mb20{
        margin-bottom: 20px;
      } 
      &.hte-nav-box{
        transition: max-height 0.3s;
      }
      &.hte-nav-hidden{
        border: none;
        margin: 0;
      }     
    }
    
    .project-info{
      display: flex;
      background-color: #f5f5f5;
      position: relative;
      div{
        >span{
          padding: 0px 5px 0px 44px;
          min-width: 108px;
          text-align: right;        
        }
        >ul{
          padding-left: 5px;
          li{
            padding: 0px 7px;
            cursor: pointer;
            i{font-size: 13px;}
            &:hover{opacity:0.8}
          }
        }
      }
    }
    .hoverShow {
      cursor: pointer;      
      border-bottom: 3px solid rgba(255, 255, 255, 0);      
      &:hover {
        border-bottom: 3px solid #177cb7;
      }
      &.active {
        color: #177cb7;
        border-bottom: 3px solid #177cb7;
        font-weight: bold;
      }
    }

    .content-list {
      h3 {
        &:extend(.bold-font);
        margin-bottom: 10px;
      }
    }
    .box-list {
      border: 1px solid #ededed;
      margin-bottom: 10px;      
      transition: transform 0.2s ease-out;
      .box-list-head {
        position: relative;
        overflow: hidden;
        background-color: #fff;
        padding: 18px 30px;        
        .box-flex {
          display: flex;     
          align-items:center;     
          > span {
            padding: 0 10px;
            font-size: 14px;
            color: #666;
            &:first-child {
              flex: 1;
              padding-left: 0;
              &:extend(.bold-font);
            }
            &:nth-child(2) {
              position: relative;
              display: inline-block;
              &:after {
                &:extend(.afterbg);
              }
            }
          }
          .flex-child-fir {
            flex: 1;
            min-width:60%;
            margin-right:2%;
            > span {
              position: relative;
              display: inline-block;
              padding-right:20px;
              font-size: 14px;
              color: #666;
              &:after {
                &:extend(.afterbg);right:10px !important;
              }         
            }
            .box-pro {
              display: inline-block;                            
              > span {
                color: @font-color-active;
                padding: 0 5px;
              }
              > div {
                width: 10vw;
                display: inline-block;
              }              
            }
          }
          .flex-child-sed {display: flex;flex-wrap: wrap;align-items: center;
            > span {
              margin-right:10px;
              cursor: pointer;
              white-space: nowrap;
              .icon-child-down{
                font-size: 11px;
                margin-left: -3px;
                transition: all .3s;
                color:#b6b6b6;
                position: relative;top:-1px;
                &.icon-child-up{
                  transform: rotate(180deg);top:-4px;
                }
              }      
              .iconfont, .anticon{color: #77b9f1;padding-right:2px;line-height: 16px;}
              .icon-lishi{font-size: 14px;padding-left: 2px;}
              .icon-xinzeng{font-size:18px;top: 1px;position: relative;}
              .icon-child {
                background-image: url('../../assets/taskList/childtask.png');
              }
              .icon-det {
                background-image: url('../../assets/taskList/task.png');
              }
              .icon-upd {
                background-image: url('../../assets/taskList/log.png');
              }
              .icon-addtask {
                background-image: url('../../assets/taskList/add.png');
              }
              .icon-tasktop {
                background-image: url('../../assets/taskList/tasktop.png');
              }
              &:last-of-type{margin-right:0}
              &:hover{
                color: #0581ca;
                .iconfont, .anticon{color: #0581ca;}
              }
            }            
          }
        }
      }
      .box-list-content {
        .nav-bg,
        .content-bg {
          display: flex;
          padding: 11px 20px;
          > span {
            flex: 1;
            padding: 0 10px;
          }
          .flex-half {
            flex: 0.5;
            padding: 0;            
          }
          .flex2 {
            flex: 2;            
          }
        }
        .content-bg {
          background-color: #f8f8f8;
          padding: 5px 20px 5px 0;
          color: #666;
          span {
            background-color: #fff;
            padding: 17px 10px;
            a {
              margin-right: 20%;
              color: @bg-color-btn;
              white-space: nowrap;
              &:last-of-type{margin-right: 0}
              &:hover{
                color: #93b9dd;
              }
            }
          }
          .flex2{
            color: #333;
            font-weight: bold;
          }
          .flex-half {
            position: relative;
            background: #f8f8f8;
            &:after {
              content: '';
              display: inline-block;
              width: 1px;
              height: 119%;
              background-color: #e2e2e2;
              top: 0;
              left: 50%;
              position: absolute;
            }
          }
          .dot {
            cursor: pointer;
            width: 10px;
            height: 10px;
            border-radius: 100%;
            display: inline-block;
            padding: 0;
            position: absolute;
            top: 50%;
            margin-top: -5px;
            left: 50%;
            margin-left: -5px;
            z-index: 1;
            background-color: #ddd;
            &.color-suc {
              background-color: #57c620;
            }
            &.color-err {
              background-color: #f52833;
            }
            &.color-dis {
              background-color: #9db7f0;
            }
          }
          &:last-child {
            padding-bottom: 26px;
          }
          &:nth-child(1) {
            padding-top: 20px;
          }
        }
        .ant-pagination {
          background: #f2f2f2;
          justify-content: flex-end;
          padding: 10px 20px;
        }
        div.nav-bg {
          background-color: #f2f2f2;
          color: #999;
          padding: 11px 20px 11px 0;
        }
      }
      &:hover{
        box-shadow: 0 4px 8px 0 #e6e6e6;
        transform: translateY(-2px);
      }
    }
  }
  /* 搜索更多 */
  .btn-more{display: none;}
  .project-class-more{padding-right: 63px;position: relative;
    .btn-more{display: inline-block;position: absolute;right: 10px;top: 11px;padding: 0px 5px;cursor: pointer;color: #999;font-weight: normal;
      &:hover{color: #0581ca;background-color: #e4e4e4;
        .icon-child-down{color: #0581ca;}
      }
    }
    ul{-webkit-transition: all .3s;transition: all .3s;overflow: hidden;max-height: 700px;
      &.projec-class-list-more{max-height: 44px;}
    }
  } 
  .icon-child-down{font-size: 11px;margin-left: 3px;transition: all .3s;color: #999;
    &.icon-child-up{transform: rotate(180deg);}
  }
  .iconfont-m{
    width:22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;    
  }
  .icon-no1{
    background-image: url('../../assets/taskList/no1.png');
  }
  .icon-no2{
    background-image: url('../../assets/taskList/no2.png');
  }
  .icon-no3{
    background-image: url('../../assets/taskList/no3.png');
  }  
  .tips-box, .loaddingbox{
    width: 100%;
    text-align: center;
  }
  .tips-box, .tree-main /deep/ .ant-empty{margin-top: 10px}
  .fontred{
    color: #f34141;
  }
  .fontgreen{
    color: #76c1b4;
  }
  /deep/ .ant-progress-inner,
  /deep/ .ant-progress-bg {
    border-radius: 2px !important;
    height: 12px !important;
  }
  /deep/ .ant-progress-status-success .ant-progress-bg{
    background-color: #1890ff;
  }
}
@media (max-width: 1080px){
  .task-main .container{padding: 20px 30px 50px !important}
}